<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo Yii::app()->user->getLanguage(); ?>" lang="<?php echo Yii::app()->user->getLanguage(); ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="<?php echo Yii::app()->user->getLanguage(); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ihm.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<title><?php echo $this->pageTitle; ?></title>
</head>

<body>


<div id="header">
	<h1>Le fil d'Harliane</h1>
</div>

<div id="menu">
<?php
$this->widget('application.widgets.MenuWidget', array (
'items' => array (
	array(
		'label' => Yii::t('views', 'Connection'),
		'visible' => true,
		'items' => array(
			array (
				'label' => Yii::t('views', 'Home'),
				'url' => array (
					'/site/index'
				)
			),
			array (
				'label' =>  Yii::t('views', 'Login'),
				'url' => array (
					'/site/login'
				),
				'visible' => Yii::app()->user->isGuest
			),
			array (
				'label' =>  Yii::t('views', 'Create account'),
				'url' => array (
					'/account/join'
				),
				'visible' => Yii::app()->user->isGuest && Yii::app()->params['allowSimulation'] === true
			),
			array (
				'label' =>  Yii::t('views', 'Logout'),
				'url' => array (
					'/site/logout'
				),
				'visible' => !Yii::app()->user->isGuest
			),
			array (
				'label' =>  Yii::t('views', 'My Account'),
				'url' => array (
					'/account'
				),
				'visible' => !Yii::app()->user->isGuest
			)
		)
	),
	array(
		'label' =>  Yii::t('views', 'Project'),
		'visible' => Yii::app()->user->canAccessRoleGroup('Adviser'),
		'items' => array (
			array (
				'label' => Yii::t('views', 'Find a project'),
				'url' => array (
					'/adviser/project/search'
				),
				'visible' => Yii::app()->user->checkAccess('Adviser.canCreateProject') ||
				             Yii::app()->user->checkAccess('Adviser.canAccessAllProjects') 
			),
			array (
				'label' => Yii::t('views', 'New project'),
				'url' => array (
					'/adviser/project/create'
				),
				'target' => '_blank',
				'visible' => Yii::app()->user->checkAccess('Adviser.canCreateProject')
			)
		)
	),
	array (
		'label' =>  Yii::t('views', 'Administration'),
		'visible' => true,
		'items' => array (
			array (
				'label' =>  Yii::t('views', 'Users management'),
				'url' => array (
					'/admin/user/admin'
				),
				'visible' => Yii::app()->user->canAccessRoleGroup('Users')
			),
			array (
				'label' =>  Yii::t('views', 'Roles management'),
				'url' => array (
					'/admin/roles/admin'
				),
				'visible' => Yii::app()->user->canAccessRoleGroup('Roles')
			),
			array (
				'label' =>  Yii::t('views', 'Services'),
				'url' => array (
					'/admin/service/admin'
				),
				'visible' => Yii::app()->user->canAccessRoleGroup('Services')
			),
			array (
				'label' =>  Yii::t('views', 'Steps'),
				'url' => array (
					'/admin/step/steps'
				),
				'visible' => Yii::app()->user->canAccessRoleGroup('Steps')
			)
		),
	)
)
));
?>
</div>


<div id="content">
<?php echo $content; ?>
</div>

<div id="footer">
Copyright &copy; 2009 <a href="http://www.harlie.fr" target="harlie">Harlie</a> - Tous droits r&eacute;serv&eacute;s - <?php echo Yii::powered(); ?>
</div>


</body>

</html>